document.write('<link rel="stylesheet" type="text/css" href="<{$siteurl}>/templates/<{$tempdir}>/public/css/lunbo.css">                                                                       ')
document.write('<div class="hc_advertising">                                                                                                                                                  ')
document.write('     <div class="LunboDiv" style="height:<{$height}>px;width:<{$width}>px">                                                                                                                                                   ')
document.write('			  <div class="Lun_bo" style="height:<{$height}>px;width:<{$width}>px">                                                                                                                                                   ')
document.write('			       <ul id="Lun_bo_ul" style="height:<{$height}>px;width:<{$width}>px">                                                                                                                                               ')
<{foreach from=$list  item=items}>
document.write('			        <li style="display: block;"><a href="<{$items['linkurl']}>" target="_blank"><img src="<{$items['img']}>" width="<{$width}>" height="<{$height}>"></a></li>                  ')
<{/foreach}>  
document.write('			       </ul>                                                                                                                                                             ')
document.write('			       <div class="Lun_bo_num">                                                                                                                                          ')
<{foreach from=$list key=myid item=items}>
<{if $myid ==0 }>
document.write('			            <span class="Lun_bo_num_box Lun_bo_num_move"><{$myid+1}></span>                                                                                                        ')
<{else}>
document.write('			            <span class="Lun_bo_num_box"><{$myid+1}></span>                                                                                                                        ')
<{/if}> 
 <{/foreach}> 
document.write('			       </div>                                                                                                                                                            ')
document.write('			  </div>                                                                                                                                                                 ')
document.write('			</div>                                                                                                                                                                   ')
document.write('<script type="text/javascript">')
document.write('          var PicNum = <{$shuliang}>;                                                                                                                                                     ')
document.write('          var CurrentIndex ;                                                                                                                                                  ')
document.write('          var ToShowPicNumber = 0;                                                                                                                                            ')
document.write('          var isMouseEnter = false;                                                                                                                                           ')
document.write('          $(".Lun_bo_num span").click(function(){                                                                                                                             ')
document.write('               CurrentIndex = $(this).index();                                                                                                                                ')
document.write('               $(this).parent().children().removeClass("Lun_bo_num_move");                                                                                                    ')
document.write('               $(this).addClass("Lun_bo_num_move");                                                                                                                           ')
document.write('               var Pic = $(this).parent().parent().children("ul");                                                                                                            ')
document.write('               $(Pic).children().hide();                                                                                                                                      ')
document.write('               $(Pic).children("li").eq(CurrentIndex).show();                                                                                                                 ')
document.write('          });                                                                                                                                                                  ')
document.write('          function PicMoveTime(){                                                                                                                                             ')
document.write('               if (isMouseEnter == true)                                                                                                                                      ')
document.write('               {                                                                                                                                                              ')
document.write('                    return;                                                                                                                                                   ')
document.write('               }                                                                                                                                                              ')
document.write('               $(".Lun_bo_num span").eq(ToShowPicNumber).trigger("click");                                                                                                    ')
document.write('               ToShowPicNumber = (ToShowPicNumber + 1) % PicNum;                                                                                                              ')
document.write('                                                                                                                                                                              ')
document.write('          }                                                                                                                                                                   ')
document.write('          setInterval("PicMoveTime()",3000);                                                                                                                                  ')
document.write('                                                                                                                                                                              ')
document.write('          $(".Lun_bo li .Lun_bo_num span").mouseenter(function(){                                                                                                             ')
document.write('               isMouseEnter = true;                                                                                                                                           ')
document.write('          });                                                                                                                                                                 ')
document.write('                                                                                                                                                                              ')
document.write('          $(".Lun_bo li .Lun_bo_num span").mouseleave(function(){                                                                                                             ')
document.write('               isMouseEnter = false;                                                                                                                                          ')
document.write('          });                                                                                                                                                                 ')
document.write('     </script>                                                                                                                                                                ')
document.write('</div>                                                                                                                                                                        ') 